package so.sao.code.service.infrastructure.enums;

import so.sao.top.core.util.messagecode.MessageCode;

/**
 * CodeMessage
 * <p>
 * error id:20000-25000
 * <p>
 * message id:25001-29999
 */
public enum CodeMessage implements MessageCode {

    BatchTypeError(20000), SaveTagBatchError(20001), IllegalCode(20002), GetFileUrlInCloudError(
            20003), NOAvailableRange(25001), OverLimitCount(
            25002), CanNotFindTopEnterprise(25003), CanNotFindTagBatch(
							25004), CanNotFindPrintFile(25005), CanNotFindPrintFileByDownloadMethod(
									25006), TagBatchConfigNotSet(25007),
    InvalidRequest(26000),
    NotInTagBatchRange(26001),
    RepeatRangeInTagBatchRange(26002),
    NOTINONEBATCHTYPE(26003),
	NOTINONEENTERPRISE(26004), CodeDomainNotSuitTheLength(26005),
    ConfigNotComplete(26006), CodeCompilationFailed(26007),StratingMustBeLessThenEnding(26008),FileDownloadError(26009),KeyLengthError(26010),EnterpriseInfoError(26011),CustomNameRepetition(26012),NoDataConfig(26013)
    ;

    private int id;

    private CodeMessage(int id) {
        this.id = id;
    }

    @Override
    public int getId() {
        return id;
    }
}
